package com.tlsy.commerce.service;

import com.tlsy.commerce.model.Role;
import com.tlsy.commerce.model.User;
import com.tlsy.commerce.model_enum.RoleTypeEnum;

import java.util.List;

/**
 * @author Tlsy
 * @version commerce 0.0.1
 * @date 2017/4/24  15:26
 */
public interface SystemService {
    void addAndUpdateRole(Role role);

    void deleteRole(Role role);

    Role findRoleById(String roleId);

    User findUserByPhone(String phone);

    void addAndUpdateUser(User user);

    void deleteUser(User user);


    User findUserById(String userId);

    List<Role> findRolesByRoleType(RoleTypeEnum typeEnum);

    void register(User user);
}
